
<%@page import="workboard.Workboard"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<jsp:useBean id="workboard" class='workboard.WorkboardVo'></jsp:useBean>
	<jsp:setProperty property="*" name="workboard" />

	<%	
		workboard.setRequest(request);	
		Workboard work = new Workboard();
		work.setVo(workboard);
		
		if (work.modify()) {%>
		<script>
				alert("정상적으로 수정되었습니다.");
				location.href="Main.jsp?inc_content=../work/Worksview.jsp&part=<%=work.getVo().getPart()%>";
		</script>

		<%} else {%>
		<script>
				alert("오류발생가 발생했습니다. 다시 시도해 주세요.");
				history.back();
				</script>
		<%}%>

</body>
</html>